/****************************************************************************

Force Engine v0.5

Creado: 28/03/08
Clase: AnimationInfo.inl
Hecho by: German Battiston AKA Melkor

****************************************************************************/

//---------------------------------------------------------------------------
inline void AnimationInfo::SetLength(float fLenght)
{
	m_fLength = fLenght;
	m_fTimePerFrame = m_fLength / GetFrameCount();
}
//---------------------------------------------------------------------------
inline float AnimationInfo::GetLength() const
{
	return m_fLength;
}
//---------------------------------------------------------------------------
inline float AnimationInfo::GetTimePerFrame() const
{
	return m_fTimePerFrame;
}
//---------------------------------------------------------------------------
inline size_t AnimationInfo::GetFrameCount() const
{
	return m_akFramesInfo.size();
}
//---------------------------------------------------------------------------
inline void AnimationInfo::SetLoopable(bool bIsLoopable)
{
	m_bIsLoopable = bIsLoopable;
}
//---------------------------------------------------------------------------
inline bool AnimationInfo::GetLoopable() const
{
	return m_bIsLoopable;
}
//---------------------------------------------------------------------------
inline const FrameInfo& AnimationInfo::GetFrameInfo(unsigned int uiIndex) const
{
	return m_akFramesInfo[uiIndex];
}
//---------------------------------------------------------------------------